<?php 

session_start();

	$_SESSION['action']= $_REQUEST['action'];
	
	$action = $_SESSION['action'];

	
	function getlang(){
		$lang = $_SESSION['lang'];
		if (empty($lang) || $lang == "EN") {
			$value = "../value/value_en.php";
		} else if($lang == "VN") {
			$value = "../value/value_vn.php";
		}
		else if($lang == "KR"){
			$value = "../value/value_kr.php";
		}
		return $value;
	}
	
	$value = getlang();
	include($value);
	$lang = $_SESSION['lang'];
	if($lang=='')
		$lang="EN";
	
?>
<div id="top">
    	<?php
			include '../page/top.php';
		?>
    </div>
    <div class="dmenu">
        <ul class="menu">
            <li class="home" id="selected"><a onclick="changePage('home')"><?=$home?></a></li>
            <li class="download2"><a onclick="changePage('download')"><?=$download?></a></li>
            <li class="buy"><a onclick="changePage('buy')"><?=$buy?></a></li>
            <li class="contact"><a onclick="changePage('contact')"><?=$contact?></a></li>
        </ul>
    </div>
    <div class="clear"></div>
    <?php
			include '../'.$action.".php";
	?>
    <div class="footer">
    	<?php
			include '../page/footer.php';
		?>
    </div>